﻿<UserControl x:Class="Agnes.MyDocsLib.ChangeTitleView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:csla="clr-namespace:Csla.Xaml;assembly=Csla.Xaml"
             mc:Ignorable="d" 
             d:DesignHeight="98" d:DesignWidth="398">
    <Grid Margin="15">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <TextBlock Text="请输入新的标题名称:"/>
        <StackPanel Orientation="Horizontal" Grid.Row="1">
            <TextBox Grid.Row="1" Width="350" Text="{Binding Model.Title,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"  Margin="20,5,20,0"/>
            <csla:PropertyStatus Margin="5,0" Property="{Binding Model.Title}"/>
        </StackPanel>
        <StackPanel Margin="0,10,10,0" Grid.Row="2" Orientation="Horizontal" FlowDirection="RightToLeft">
            <Button x:Name="Cancel" Content="取消" MinWidth="70"/>
            <Button x:Name="Save" Content="确定" MinWidth="70" Margin="10,0,0,0"/>
        </StackPanel>
    </Grid>
</UserControl>
